{% extends 'myadmin/base/obj_list.html' %}
{% block search_form %}
{% endblock %}
{% block add_button %}
     <button type="button" class="btn btn-primary btn-sm"
                            data-url="{% url 'myadmin:course_add' %}">添加
                    </button>
{% endblock %}
{% block table_content %}

{##}
{#    <tr>#}
{#        <th>#</th>#}
{#        <th>课程章节</th>#}
{#        <th>类型</th>#}
{#        <th>老师</th>#}
{#        <th>简介</th>#}
{#        <th>大纲</th>#}
{#        <th>时长</th>#}
{#        <th>封面</th>#}
{#        <th>逻辑删除</th>#}
{#    </tr>#}
{#{% for obj in lesson %}#}
{##}
{#        <tr>#}
{#            <td style="width: 40px" data-url=""><a href="#">{{ forloop.counter }}</a></td>#}
{##}
{#            <td>{{ obj.name }}</td>#}
{#            <td>{{ obj.name }}</td>#}
{#            <td>{{ obj.teacher.name }}</td>#}
{#            <td>{{ obj.profile|default:'无' }}</td>#}
{#            <td>{{ obj.outline|default:'无' }}</td>#}
{#            <td>{{ obj.duration }}</td>#}
{#            <td><img src="{{ obj.cover_url }}" alt="" style="width: 80px;height: 20px"></td>#}
{#            <td>{% if obj.is_delete %}是{% else %}否{% endif %}</td>#}
{#        </tr>#}
{##}
{#    {% endfor %}#}
{% endblock %}